]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
browser-plugin: Set that we need XEmbed
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 11 Nov 2011 03:35:41 +0000 (22:35 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 12 Nov 2011 18:38:36 +0000 (13:38 -0500)
This makes the plugin work under WebKit-based browsers such as Chromium and
Epiphany. See http://code.google.com/p/chromium/issues/detail?id=38229 and
WindowedCreatePlugin() in
http://src.chromium.org/viewvc/chrome/trunk/src/webkit/plugins/npapi/webplugin_delegate_impl_gtk.cc?revision=86823&content-type=text%2Fplain
for more information.

https://bugzilla.gnome.org/show_bug.cgi?id=663823

browser-plugin/browser-plugin.c

index 0ab2d78350bdf6960068422a825d0c1750e81e45..2daa0ddcd749da7359dc1073151698a5393f7928 100644 (file)
@@ -816,6 +816,11 @@ NPP_GetValue(NPP          instance,
 
     *(NPObject**)value = funcs.createobject (instance, &plugin_class);
     break;
+
+  case NPPVpluginNeedsXEmbed:
+    *(bool *)value = TRUE;
+    break;
+
   default:
     ;
   }